home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / System / ReqToolsLib / Source / reqtools / rtfreereqbuffer.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-07-02  |  1.3 KB  |  72 lines

  1.  
  2. /*
  3.     (C) 1999 - 2000 AROS - The Amiga Research OS
  4.     $Id: rtfreereqbuffer.c,v 1.3 2000/11/26 16:53:48 stegerg Exp $
  5.  
  6.     Desc:
  7.     Lang: English
  8. */
  9.  
  10. #include <exec/types.h>
  11. #include <proto/exec.h>
  12. #include <proto/reqtools.h>
  13. #include <proto/intuition.h>
  14. #include <exec/libraries.h>
  15. #include <exec/memory.h>
  16. #include <aros/libcall.h>
  17.  
  18. #include "reqtools_intern.h"
  19.  
  20. /*****************************************************************************
  21.  
  22.     NAME */
  23.  
  24.     AROS_LH1(void, rtFreeReqBuffer,
  25.  
  26. /*  SYNOPSIS */
  27.  
  28.     AROS_LHA(APTR, req, A1),
  29.  
  30. /*  LOCATION */
  31.  
  32.     struct ReqToolsBase *, ReqToolsBase, 7, ReqTools)
  33.  
  34. /*  FUNCTION
  35.     Frees the buffer associated with 'req'. In case of a file requester
  36.     this function will deallocate the directory buffer, in case of a
  37.     font requester the font list.
  38.  
  39.     It is safe to call this function for requesters that have no
  40.     buffer, so you may call this for all requesters to free as much
  41.     memory as possible.
  42.    
  43.     INPUTS
  44.     req - pointer to requester.
  45.  
  46.     RESULT
  47.     none
  48.  
  49.     NOTES
  50.  
  51.     EXAMPLE
  52.  
  53.     BUGS
  54.     none known
  55.  
  56.     SEE ALSO
  57.     rtFileRequest(), rtFontRequest()
  58.  
  59.     INTERNALS
  60.  
  61.     HISTORY
  62.  
  63. ******************************************************************************/
  64. {
  65.     AROS_LIBFUNC_INIT
  66.  
  67.     FreeReqBuffer(req); /* in filereqalloc.c */
  68.     
  69.     AROS_LIBFUNC_EXIT
  70.     
  71. } /* rtFreeReqBuffer */
  72.